var order = ['red', 'yellow', 'blue', 'green', 'red']
var list = [
  {
    "id":1,
  },
  {
    "id":2
  }
]

Page({
  data: {
    height:'',
    width:'',
    viewId:'b',
    list: list
  },
  onLoad:function(event){

    var systemInfo = wx.getSystemInfoSync();

    console.log(systemInfo.windowWidth);
    
    this.setData({
      height: systemInfo.windowHeight,
      width: systemInfo.windowWidth
    })
  },
  eventGob:function(param){
    console.log('a');
    this.setData({
      viewId: 'b'
    })
  },
  eventGoa: function (param) {
    this.setData({
      viewId: 'a'
    })
  },

  goLeft:function(event){
    //console.log(event);
  },

  goRight: function (event) {

  },

  haha:function(event){
   
  },
  heihei: function (event) {
    
  }

})